local wuyingtui = fk.CreateSkill {
  name = "lingling__wuyingtui",
}

Fk:loadTranslationTable{
  ["lingling__wuyingtui"] = "无影腿",
  [":lingling__wuyingtui"] = "出牌阶段限一次，你可以选择两张【闪】依次打出之，对攻击范围内的一名其他角色造成2点伤害。",

  ["#lingling__wuyingtui"] = "无影腿：选择两张【闪】依次打出之，对攻击范围内的一名其他角色造成2点伤害",
}

wuyingtui:addEffect("active", {
  anim_type = "offensive",
  prompt = "#lingling__wuyingtui",
  max_phase_use_time = 1,
  handly_pile = true,
  card_num = 2,
  card_filter = function(self, player, to_select, selected)
    local card = Fk:getCardById(to_select)
    return card and #selected < 2 and card.trueName == "jink" and not player:prohibitResponse(card)
  end,
  target_num = 1,
  target_filter = function(self, player, to_select, selected)
    return #selected == 0 and player:inMyAttackRange(to_select)
  end,
  on_use = function(self, room, use)
    local player = use.from
    local target = use.tos[1]
    for _, card in ipairs(use.cards) do
      room:responseCard{
        from = player,
        card = Fk:getCardById(card)
      }
    end
    room:damage{
      from = player,
      to = target,
      damage = 2,
      skillName = wuyingtui.name
    }
  end
})

return wuyingtui
